const {myneed} =require('../../../util/api')
Page({
  /**
   * 页面的初始数据
   */
  data: {
   
    isShow: true,
    currentTab:"3"
  },
  tabNav(e) {
    
    if (this.data.currentTab === e.target.dataset.current) {
     
      return false;  
    } else 
      var showMode = e.target.dataset.current == 0;
      this.setData({
        currentTab: e.target.dataset.current,
        isShow: showMode,
      })
      let p={
        memberId:this.data.memberId,
        pageNum:1,
        examineStatus:this.data.currentTab

      }
      myneed(p).then(res=>{
       
      })

    }
    
    ,
    onShow(){
      this.setData({
        memberId:wx.getStorageSync('memberId')
      })
      let p={
        memberId:this.data.memberId,
        pageNum:1,
        examineStatus:3

      }
      myneed(p).then(res=>{
        
      })

    }
    
    })
